package com.jw.debezuim.common.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Min;
import java.io.Serializable;

/**
 * 分页查询条件
 */

@Getter
@Setter
@ApiModel("分页查询基本条件")
public class BasePageReqDto implements Serializable {

    @Min(value = 1, message = "页码不能小于1")
    @ApiModelProperty("当前页码")
    private Integer pageNum = 1;

    @Min(value = 1, message = "每页数据量不能小于1")
    @ApiModelProperty("每页数据量")
    private Integer pageSize = 10;

}
